package io.gitee.zhucan123.core.infrastructure.exception;

import com.niimbot.middlend.core.infrastructure.annotation.ExceptionAdvice;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * @author: zhuCan
 * @date: 2019/10/15 9:49
 * @description:
 */
@ExceptionAdvice
@ResponseStatus(HttpStatus.UNAUTHORIZED)
public class NoAccessException extends RuntimeException {

  public NoAccessException(String msg) {
    super(String.format(" 禁止 : %s", msg));
  }
}
